const path = require("path");
const cracoLessPlugin = require('craco-less');
const pathResolve = (dir) => path.resolve(__dirname, dir)
const getEnvConfig = (key) => process.env[key]
module.exports = {
    // less
    plugins: [
        {
            plugin: cracoLessPlugin,
        }
    ],
    // webpack
    webpack: {
        alias: {
            '@': pathResolve('src'),
            '@components': pathResolve('src/components'),
        },
        extensions: ['.js', '.jsx', '.less', '.scss', '.ts', '.tsx', '.mjs', '.json'],
    },

}
